package com.dsz.apibackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dsz.apibackend.model.dto.user.UserLoginRequest;
import com.dsz.apibackend.model.dto.user.UserRegisterRequest;
import com.dsz.apibackend.model.vo.UserVO;
import com.dsz.apicommon.model.domain.User;

import javax.servlet.http.HttpServletRequest;

/**
 * @author dushangzhi
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2024-03-14 11:01:20
 */
public interface UserService extends IService<User> {

    UserVO userLogin(UserLoginRequest userLoginRequest, HttpServletRequest request);

    Long userRegister(UserRegisterRequest userRegisterRequest);

    boolean userLogout(HttpServletRequest request);

    UserVO getCurrentUser(HttpServletRequest request);
}
